﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true"
    CodeFile="AlterarCandidato.aspx.cs" Inherits="_AlterarCandidato" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .tabela
        {
            font: 18px tahoma, arial;
        }
        .tabela span
        {
            font: 11px tahora, arial;
        }
        .dados
        {
        }
        .descricao
        {
            width: 345px;
        }
        select
        {
            font: 16px tahoma, arial;
            padding: 5px;
        }
        .nome
        {
            text-align: right;
            font: bold 30px Tahoma, Arial;
            color: #006C91;
        }
        
        img
        {
            border: none;
        }
        
        input[type=text], input[type=password]
        {
            padding: 5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript">        muda(alterar, '#0C5C7E');</script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table style="width: 494px; margin-top: 10px;" cellpadding="0" cellspacing="4" class="tabela">
        <tr>
            <td colspan="2" class="nome">
                Alterar Cadastro
            </td>
        </tr>
        <tr>
            <td class="dados" colspan="2">
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 494px; margin-top: 10px;" cellpadding="0" cellspacing="4" class="tabela">
                <tr>
                    <td class="dados">
                        CEP:
                    </td>
                    <td align="left" class="descricao">
                        <asp:TextBox ID="txtCEP" runat="server" MaxLength="8" Width="80px" AutoPostBack="True"
                            OnTextChanged="txtCEP_TextChanged"></asp:TextBox>
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                            <ProgressTemplate>
                                <table style="width: 300px;" cellpadding="0">
                                    <tr>
                                        <td style="width: 12px;">
                                            <img alt="..." src="../../tiny_red.gif" style="width: 10px; height: 10px" />
                                        </td>
                                        <td>
                                            <span>Aguarde, preenchendo os dados do endereço...</span>
                                        </td>
                                    </tr>
                                </table>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </td>
                </tr>
                <tr>
                    <td class="dados">
                        Endereço:
                    </td>
                    <td align="left" class="descricao">
                        <asp:TextBox ID="txtEndereco" runat="server" MaxLength="100" Width="310px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="dados">
                        Número:
                    </td>
                    <td align="left" class="descricao">
                        <asp:TextBox ID="txtNumero" runat="server" MaxLength="8" Width="80px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="dados">
                        Complemento:
                    </td>
                    <td align="left" class="descricao">
                        <asp:TextBox ID="txtComplemento" runat="server" MaxLength="20"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="dados">
                        Bairro:
                    </td>
                    <td align="left" class="descricao">
                        <asp:TextBox ID="txtBairro" runat="server" MaxLength="30" Width="210px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="dados">
                        Cidade:
                    </td>
                    <td align="left" class="descricao">
                        <asp:TextBox ID="txtCidade" runat="server" MaxLength="50" Width="210px"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <table style="width: 494px;" cellpadding="0" cellspacing="4" class="tabela">
        <tr>
            <td class="style1">
                Estado civil:
            </td>
            <td align="left" class="style2">
                <asp:DropDownList ID="ddEstadoCivil" runat="server">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem>SOLTEIRO(A)</asp:ListItem>
                    <asp:ListItem>CASADO(A)</asp:ListItem>
                    <asp:ListItem>DIVORCIADO(A)</asp:ListItem>
                    <asp:ListItem>SEPARADO(A)</asp:ListItem>
                    <asp:ListItem>VIÚVO(A)</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Telefone 1:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtFone" runat="server" MaxLength="14" Width="140px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="dados">
                Telefone 2:
            </td>
            <td class="descricao">
                <asp:TextBox ID="txtFone2" runat="server" MaxLength="14" Width="140px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="dados">
                Email:
            </td>
            <td class="descricao">
                <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Width="210px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="dados">
                Senha:
            </td>
            <td class="descricao">
                <asp:TextBox ID="txtSenha" runat="server" MaxLength="8" Width="80px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Confirma:
            </td>
            <td class="style2">
                <asp:TextBox ID="txtSenhaConfirma" runat="server" MaxLength="8" Width="80px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="height: 10px;">
                <asp:RequiredFieldValidator ID="RV1" runat="server" ControlToValidate="txtCEP" Display="None"
                    ErrorMessage="Informe o CEP"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV2" runat="server" ControlToValidate="txtEndereco"
                    Display="None" ErrorMessage="Informe o endereço"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV3" runat="server" ControlToValidate="txtNumero"
                    Display="None" ErrorMessage="Informe o número"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV4" runat="server" ControlToValidate="txtBairro"
                    Display="None" ErrorMessage="Informe o bairro"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV5" runat="server" ControlToValidate="txtCidade"
                    Display="None" ErrorMessage="Informe a cidade"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV8" runat="server" ControlToValidate="ddEstadoCivil"
                    Display="None" ErrorMessage="Informe o estado civil"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV6" runat="server" ControlToValidate="txtFone" Display="None"
                    ErrorMessage="Informe o telefone"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV7" runat="server" ControlToValidate="txtSenha"
                    Display="None" ErrorMessage="Informe a senha"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CV1" runat="server" ControlToCompare="txtSenhaConfirma"
                    ControlToValidate="txtSenha" Display="None" ErrorMessage="A senha confirmada deve ser igual a fornecida"></asp:CompareValidator>
                <asp:CompareValidator ID="CV2" runat="server" ControlToValidate="txtCEP" Display="None"
                    ErrorMessage="O CEP deve ser preenchido apenas com números, sem sinal" Operator="DataTypeCheck"
                    Type="Double"></asp:CompareValidator>
                <asp:ValidationSummary ID="VS1" runat="server" ShowMessageBox="True" ShowSummary="False" />
            </td>
        </tr>
    </table>
    <div style="text-align: right">
        <asp:ImageButton ID="btnAlterar" runat="server" ImageUrl="../figuras/bAlterar.gif"
            OnClick="btnCadastro_Click" />
        &nbsp;</div>
</asp:Content>
